<style>
    h1 h2{
        margin: 50px 0;
    }
    .p h2 a {
        margin-right: 10px;
        color: cyan;
        text-decoration: none;
    }
    h2 a:hover{
        color: crimson;
        text-decoration: gold;
    }
    h2 a:last-child{
        margin-right: 0;
    }
    .n{
        color: gold !important;
        text-decoration: underline !important;
    }
    .info{
        text-align: right;
        max-width: 550px;
        margin: 0 auto;
    }
    .info a {
        color: deeppink;
        text-decoration: none;
    }
    .info a:hover{
        color: aquamarine;
        text-decoration: none;
    }
</style>
<h1>会员注册管理系统</h1>
<?php
if (isset($_SESSION['loggedUsername'])){
?>
<div class="info">欢迎<?php echo $_SESSION['loggedUsername']?>，<a href="logout.php">注销登录</a></div>
<?php
}
?>
<h2>
    <?php
    $navID =$_GET['navID'] ?? 1;
    ?>
    <a href="index.php?navID=1" <?php if ($navID == 1) {echo 'class="n"';}?>>回到首页</a>
    <a href="reg.php?navID=2" <?php if ($navID == 2) {echo 'class="n"';}?>>会员注册</a>
    <a href="login.php?navID=3" <?php if ($navID == 3) {echo 'class="n"';} ?>>会员登录</a>
    <a href="#">质料修改</a>
    <a href="#">后台管理</a>
</h2>
